package com.x.gateway.feign;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;

/**
 * @author Jetzhu
 * @date 2019/2/1
 */
@FeignClient(contextId = "helloServer", value = "HelloServer"



		/*fallbackFactory = RemoteUserServiceFallbackFactory.class*/)
public interface Hello {
	@GetMapping(value="/"/*,headers={"from=Y"}*/)
	String hello(@RequestHeader("from") String from);


}
